package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

/**
 * @Author: Take-off
 * @Description: TODO
 * @Date: 2023/1/28 10:13 AM
 * @Version: 1.0
 **/
@Data
@TableName("pf_evaluation_score_detail")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "EvaluationScoreDetail 对象", description = "企业评分 - 评分细则")
public class EvaluationScoreDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "企业评分主体Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long baseScoreId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "基础表Id")
    private Long baseBusinessIndicatorsId;

    @ApiModelProperty(value = "指标名称")
    @TableField(exist = false)
    private String name;

    @ApiModelProperty(value = "评分主体")
    private String fillingUnitId;

    @ApiModelProperty(value = "评分主体-name")
    private String fillingUnitName;

    @ApiModelProperty(value = "评分")
    private BigDecimal score;

    @ApiModelProperty(value = "加减分理由")
    private String reason;

    @ApiModelProperty(value = "佐证材料")
    @TableField(exist = false)
    private List<HashMap> docList;
}
